package com.techstar.ats.dxp.history;

import java.time.LocalDateTime;

import com.techstar.ats.dxp.CsvFormatter;
import com.techstar.ats.type.ActionType;
import com.techstar.ats.type.SiteType;

public class F19Action implements CsvFormatter {
	private static final long serialVersionUID = 1L;
	public SiteType siteType;
	public int site;
	public String name;
	public LocalDateTime optime;
	public String user;
	public ActionType type;
	public int subType;
	public String content;

	public boolean toCsvString(StringBuffer sb) {
		sb.append(this.siteType)
			.append(',')
			.append(this.site)
			.append(',')
			.append(this.name)
			.append(',')
			.append(this.optime.format(DATE_TIME_FORMATTER))
			.append(',')
			.append(this.user)
			.append(',')
			.append(this.type)
			.append(',')
			.append(this.subType)
			.append(',')
			.append(this.content);
		return true;
	}
}
